package com.example.demo1.enums;

import lombok.Getter;

/**
 * Description: 本类用于维护员工状态码信息
 * Created by 白相宇 on 2019/12/19 15:05
 */
@Getter
public enum EmpInfoEnum {

    queryExceptionBYiD(1001, "根据id查询异常"),
    idIsNull(1002, "id为空"),
    resultNotFound("没有查到结果");
    /**
     * 状态码
     */
    private Integer statusCode;
    private String statusMessage;

    EmpInfoEnum(Integer statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    EmpInfoEnum(String statusMessage) {
        this.statusMessage = statusMessage;
    }
}
